import { defineStore } from 'pinia';

export const useAuthStore = defineStore('auth', {
    state: () => ({
        isAuthenticated: false, // 用户是否认证的状态
    }),
    actions: {
        login() {
            this.isAuthenticated = true; // 设置认证状态
        },
        logout() {
            this.isAuthenticated = false; // 清除认证状态
        },
    },
});